﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LatteCoffee.coffeemodel
{
    /// <summary>
    /// 判断模块中各个部分
    /// </summary>
    public class DiaitalBool
    {
        private static DiaitalBool instance;
        private DiaitalBool() { }

        public static DiaitalBool Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DiaitalBool();
                }
                return instance;
            }
        }
        /// <summary>
        /// 安全光栅
        /// </summary>
        public bool BANNER_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 取杯成功检测
        /// </summary>
        public bool TakeCup_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 出餐杯子检测
        /// </summary>
        public bool OutMealCup_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆上限检测
        /// </summary>
        public bool PushRodUP_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆下限检测
        /// </summary>
        public bool PushRodDown_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 出餐门上限检测
        /// </summary>
        public bool OutMealDoorUP_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 出餐门下限检测
        /// </summary>
        public bool OutMealDoorDown_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 电机原点检测1
        /// </summary>
        public bool MotorOriginalPoint1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 电机上限检测1
        /// </summary>
        public bool MotorUP1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 杯子供料检测1
        /// </summary>
        public bool CupFeed1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 电机原点检测2
        /// </summary>
        public bool MotorOriginalPoint2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 电机上限检测2
        /// </summary>
        public bool MotorUP2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 杯子供料检测2
        /// </summary>
        public bool CupFeed2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 咖啡豆检测
        /// </summary>
        public bool CoffeeBean_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 巧克力粉检测
        /// </summary>
        public bool ChocolatePowder_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 牛奶检测
        /// </summary>
        public bool Milk_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 升杯按钮1
        /// </summary>
        public bool UPCupBtn1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 升杯按钮2
        /// </summary>
        public bool UPCupBtn2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水检测
        /// </summary>
        public bool Water_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测1
        /// </summary>
        public bool Fructose1_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 果糖检测2
        /// </summary>
        public bool Fructose2_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 果糖检测2
        /// </summary>
        public bool Fructose3_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 牛奶检测小
        /// </summary>
        public bool MilkMin_Sel_Bol { get; set; } = true;
    }
    public class Msg
    {
        public DiaitalBool diaital { get; set; }
        public DigitalMsgBol msgBol { get; set; }
    }
}
